package Linkedlist;

import java.util.ArrayList;

public class test1 {
    public static void main(String[] args) {
        ArrayList<Bosscat> list = new ArrayList<>();
        ArrayList<Cat> list1 = new ArrayList<>();
        keepPet(list);
        keepPet(list1);

    }
    public static void keepPet(ArrayList<? extends Animals  > list){
        System.out.println("养猫");
    }
}
